package com.edu.cloud.center.api;

import lombok.Data;
import org.springframework.http.HttpStatus;

@Data
public class R<T> {

    private Integer code = HttpStatus.OK.value();
    private String msg = "success";
    private T data;

    public static R<String> ok() {
        return ok("");
    }
    public static <T> R<T> ok(T data) {
        R<T> r=new R<T>();
        r.setData(data);
        return r;
    }
}
